\hypertarget{structnih_1_1if__constant}{
\section{nih\-:\-:if\-\_\-constant$<$ \-T, \-R $>$ \-Struct \-Template \-Reference}
\label{structnih_1_1if__constant}\index{nih\-::if\-\_\-constant$<$ T, R $>$@{nih\-::if\-\_\-constant$<$ T, R $>$}}
}


{\ttfamily \#include $<$functors.\-h$>$}

\subsection*{\-Public \-Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{structnih_1_1if__constant_a7a289e997ad5fa2ad4c9a60613e598b8}{
typedef \hyperlink{structnih_1_1unary__function__tag}{unary\-\_\-function\-\_\-tag} {\bfseries function\-\_\-tag}}
\label{structnih_1_1if__constant_a7a289e997ad5fa2ad4c9a60613e598b8}

\item 
\hypertarget{structnih_1_1if__constant_aa64810aaea46c241f113c8d8b4f07d06}{
typedef \-T {\bfseries argument\-\_\-type}}
\label{structnih_1_1if__constant_aa64810aaea46c241f113c8d8b4f07d06}

\item 
\hypertarget{structnih_1_1if__constant_a159dc8e54ab9afe79b774dd9a350834d}{
typedef \-R {\bfseries result\-\_\-type}}
\label{structnih_1_1if__constant_a159dc8e54ab9afe79b774dd9a350834d}

\end{DoxyCompactItemize}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{structnih_1_1if__constant_a77290aa02588bf6d74f7aa705111df83}{if\-\_\-constant} (const \-T c, const \-R r0, const \-R r1)
\item 
\hypertarget{structnih_1_1if__constant_adefcc7f8a693206e01e0af6a826c47a2}{
\-N\-I\-H\-\_\-\-H\-O\-S\-T\-\_\-\-D\-E\-V\-I\-C\-E \-R {\bfseries operator()} (const \-T \&v) const }
\label{structnih_1_1if__constant_adefcc7f8a693206e01e0af6a826c47a2}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\subsubsection*{template$<$typename T, typename R$>$struct nih\-::if\-\_\-constant$<$ T, R $>$}

\-A functor to select between two output values based on equality to a given constant 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{structnih_1_1if__constant_a77290aa02588bf6d74f7aa705111df83}{
\index{nih\-::if\-\_\-constant@{nih\-::if\-\_\-constant}!if\-\_\-constant@{if\-\_\-constant}}
\index{if\-\_\-constant@{if\-\_\-constant}!nih::if_constant@{nih\-::if\-\_\-constant}}
\subsubsection[{if\-\_\-constant}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename T , typename R $>$ {\bf nih\-::if\-\_\-constant}$<$ \-T, \-R $>$\-::{\bf if\-\_\-constant} (
\begin{DoxyParamCaption}
\item[{const \-T}]{c, }
\item[{const \-R}]{r0, }
\item[{const \-R}]{r1}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{structnih_1_1if__constant_a77290aa02588bf6d74f7aa705111df83}
constructor


\begin{DoxyParams}{\-Parameters}
{\em c} & constant value \\
\hline
{\em r0} & true output value \\
\hline
{\em r1} & false output value \\
\hline
\end{DoxyParams}


\-The documentation for this struct was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
basic/\hyperlink{functors_8h}{functors.\-h}\end{DoxyCompactItemize}
